<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/7/22
 * Time: 13:04
 */

namespace App\Http\Controllers\Passenger\V2\Index;


use App\Http\Controllers\Controller;

use App\Services\IndexService;
use Illuminate\Http\Request;

class IndexController extends Controller
{

    /**
     * 广告图管理
     */
  public function banner(Request $request ,IndexService $service)
  {
      $name = $request->post('name','');
     return $this->sendJson($service->getBanner($name));
  }
}